<?php

namespace App\Models;

class BannerItem extends BaseModel
{
    protected $table = 'banner_item';

    public function getImgAttribute($imgPath): array
    {
         return [
             'access_path' => config('app.url') . strstr($imgPath, '/banner'),
             'save_path'   => $imgPath
         ];
    }
}
